package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.system.domain.SysCommunity;

import java.io.Serial;
import java.io.Serializable;


/**
 * 小区视图对象 sys_community
 *
 * @author Lion Li
 * @date 2024-05-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysCommunity.class)
public class SysCommunityVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 小区ID
     */
    @ExcelProperty(value = "小区ID")
    private Long communityId;

    /**
     * 小区名称
     */
    @ExcelProperty(value = "小区名称")
    private String name;

    /**
     * 小区地址
     */
    @ExcelProperty(value = "小区地址")
    private String address;

    /**
     * 根据定位获取城市编码
     */
    @ExcelProperty(value = "根据定位获取城市编码")
    private String cityCode;

    /**
     * 联系方式
     */
    @ExcelProperty(value = "联系方式")
    private String tel;

    /**
     * 外部编码
     */
    @ExcelProperty(value = "外部编码")
    private String extCommunityId;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    private String lat;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    private String lng;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 电梯数量
     */
    private Long elevatorCount;
}
